﻿<%@ Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<FrasesSimpsonsMvc.Models.Personajes>" %>
<%@ Import Namespace="FrasesSimpsonsMvc.Views" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
	<% Html.RenderPartial("BasicHeadUserControl"); %>
</asp:Content>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server"><%= Html.Encode(Model.Nombre) %></asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
	<% Html.RenderPartial("SearchCleanUserControl"); %>

	<div class="row-responsive">
		<ul class="breadcrumb">
			<li>
				<a href="<%= Url.Action("Index", "Home") %>">Home</a> <span class="divider">/</span>
			</li>
			<li>
				<a href="<%= Url.Action("Index", "Personaje") %>">Personajes</a> <span class="divider">/</span>
			</li>
			<li class="active"><%= Html.Encode(Model.Nombre) %></li>
		</ul>
	</div>

	<div class="row-responsive">
		<ul class="thumbnails">
			<li class="span3 thumbnail-box">
				<div class="thumbnail">
					<div class="thumbnail">
						<img alt="<%= Html.Encode(Model.Nombre) %>" src="<%= VirtualPathUtility.ToAbsolute("~/Content/Images/Personajes/o/" + Model.Id + ".png") %>"/>
					</div>
					<div class="caption">
						<h3><%= Html.Encode(Model.Nombre) %></h3>
						<a class="btn" target="_blank" href="<%= Model.WikipediaIngles %>"><i class="icon-globe"></i> Wikipedia en Ingles</a>
						<a class="btn" target="_blank" href="<%= Model.WikipediaCastellano %>"><i class="icon-globe"></i> Wikipedia en Castellano</a>
					</div>
				</div>
			</li>
		<% foreach (var frase in Model.Frases) { %>
			<li class="span3 thumbnail-box">
			<% Html.RenderPartial("FraseLinkUserControl", frase); %>
			</li>
		<% } %>
		</ul>
	</div>

	<div class="row-responsive">
		<fb:comments href="<%= FrasesSimpsonsMvc.Models.Settings.SitePublicUrl %><%= Url.Action("Detail", "Personaje", new { Id = Model.Id }) %>" numposts="10" width="425" publish_feed="false"></fb:comments>
	</div>

</asp:Content>

